<?php 
/*
 * @package WordPress
 * @subpackage WelCare
 * Template Name: Front Page Template
 */
 
get_header();

/** Main Slider */
include(THEME_PATH .'/libs/main_slider.php');?>

<?php if(have_posts()):?>
<!-- Content -->
<div class="container">
	<?php while(have_posts()) : the_post();?>
	<?php the_content();?>
	<?php endwhile;?>
</div>
<?php endif;?>

<!-- Widgetize Area -->
<div class="container">
	
	<?php if(is_active_sidebar('homepage-sidebar1') || is_active_sidebar('homepage-sidebar2')):?>
	<div class="grids">
	
		<div class="double_column">
			<?php dynamic_sidebar('homepage-sidebar1');?>
		</div>
		
		<div class="single_column">
			<?php dynamic_sidebar('homepage-sidebar2');?>
		</div>
		
	</div>	
	<?php endif;?>
	
	<?php if(is_active_sidebar('homepage-sidebar3')):?>
	<div class="grids">
		<div class="col-3">
			<?php dynamic_sidebar('homepage-sidebar3');?>
		</div>
	</div>
	<?php endif;?>
	
	<?php if(is_active_sidebar('homepage-sidebar4')):?>
	<div class="grids">
		<div class="col-3">
			<?php dynamic_sidebar('homepage-sidebar4');?>
		</div>
	</div>
	<?php endif;?>

</div>

<!-- Insurance Company Area -->
<?php include_once('libs/insurance.php'); ?>

<?php get_footer();?>